import http from '@/utils/http';//导入接口域名列表
import host_one from "./host/host"
const request = {
    product_list(params, callback) {
        http.post(host_one + "/productslist", params, callback)
    },
    add_product(params, callback) {
        http.post(host_one + "/productsadd", params, callback)
    },
    edit_product(params, callback) {
        http.post(host_one + "/productsupdate", params, callback)
    },
    delete_product(params, callback) {
        http.post(host_one + "/productsdelete", params, callback)
    },
    detail_product(params, callback) {
        http.post(host_one + "/productsdetail", params, callback)
    }
}
export default request;